{include file="public/header" /}
{if !$Request.param.openShowType || $Request.param.openShowType == 2}
<link rel="stylesheet" href="/static/admin/css/base.css" media="all">
<style>
    .layui-form-item {
        margin-bottom: 15px !important;
        clear: both;
        *zoom: 1;
    }
</style>
{else}
<style>
    .layui-fluid {
        padding: 0 !important;
    }

    .layui-card {
        box-shadow: none !important;
    }
</style>
{/if}
<body>
<form action="{:url('save')}" class="layui-form" id="form"  style="padding-top: 8px">
<div class="layui-fluid layui-anim layui-anim-downbit">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            {include file="public/arguments" /}
            {foreach name="field" item="form"}
            {switch form.type}

            {case value="input"}
            {include file="form/items/input" type='' /}
            {/case}

            {case value="number"}
            {include file="form/items/number" type='' /}
            {/case}

            {case value="ratio"}
            {include file="form/items/ratio" type='' /}
            {/case}

            {case value="radio"}
            {include file="form/items/radio" type='' /}
            {/case}

            {case value="checkbox"}
            {include file="form/items/checkbox" type='' /}
            {/case}

            {case value="select"}
            {include file="form/items/select" type='' /}
            {/case}

            {case value="img"}
            {include file="form/items/img" type='' /}
            {/case}

            {case value="video"}
            {include file="form/items/video" type='' /}
            {/case}

            {case value="audio"}
            {include file="form/items/audio" type='' /}
            {/case}

            {case value="rich_text"}
            {include file="form/items/rich_text" type='' /}
            {/case}

            {case value="password"}
            {include file="form/items/password" type='' /}
            {/case}

            {case value="textarea"}
            {include file="form/items/textarea" type='' /}
            {/case}

            {default /}

            {/switch}
            {/foreach}
        </div>
    </div>
</div>
<div style="clear: both;height: 80px;"></div>
<div class="layui-form-item layui-layout-admin">
    <div class="layui-input-block" style="min-height: 0!important;">
        <div class="layui-footer" style="left: 0;">
            <button class="layui-btn" data-back-url="{$backUrl}" lay-filter="save" lay-submit formObj="#form">保存
            </button>
            {if !$Request.param.openShowType || $Request.param.openShowType == 2}
            <a class="layui-btn layui-btn-primary" onclick="parent.layui.admin.events.closeThisTabs()">关闭
            </a>
            {/if}
        </div>
    </div>
</div>
</form>
</body>
{include file="public/footer" /}
</html>